package cn.cnf.common.enums;

/**
 * @author ZhuMeiYi
 * @date 2021/1/10 11:07
 * @description
 */
public enum VerifyState {
    /**
     * 连载&完结&已更新
     */
    VERIFYING("审核中", 0),
    VERIFIED("审核完成", 1),
    BACK("退回", 2);


    /**
     * 类型
     */
    private String type;
    /**
     * 值
     */
    private Integer value;

    VerifyState(String type, Integer value) {
        this.type = type;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public Integer getValue() {
        return value;
    }

    public static VerifyState getByValue(Integer value) {
        for (VerifyState chapterState : values()) {
            if (chapterState.getValue().equals(value)) {
                return chapterState;
            }
        }
        return null;
    }

    public void setType(String type) {
        this.type = type;
    }
}
